<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="common.jsp"%>
<form  method="post" action="bookstore.jsp">
    <table width="100%" border="0">
        <tr>
            <td><center><img src="Images/ico_booksort.gif" width="25" height="25"><font size="+2"  color="#FF33FF"><b>图书分类列表</b></font></center><hr  color="#FF0000"size="3" /></td>
        </tr>
        
        <%
        java.util.Collection l = bookDB.getBookType();
        java.util.Iterator i = l.iterator();
        Booktype bt = null;
        while (i.hasNext()) {
            bt = (Booktype) i.next();
            out.println("<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=bookstore.jsp?id=" + bt.getBooktypeid() + ">" + bt.getName() + "</a></td></tr>");

        }

        %>
    </table>
    <table width="100%" height="55"  border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" align="right"><img src="Images/index_14.gif" width="185" height="49"></td>
        </tr>
        <tr>
            <td width="14%">&nbsp;</td>
            <td width="86%" height="100" valign="top" >

                <%
        java.util.Collection ll = bookDB.getBBS();
        java.util.Iterator ii = ll.iterator();
        Bbs bs = null;
        while (ii.hasNext()) {
            bs = (Bbs) ii.next();
                %>
                <table width="100%" height="21"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td><%=bs.getContent()%></td>
                    </tr>
                </table>
                <%}%>

            </td>
        </tr>
    </table>
</form>